//
//  DenLuViewController.m
//  Work
//
//  Created by Apple on 15/12/15.
//  Copyright © 2015年 mohekeji. All rights reserved.
//

#import "DenLuViewController.h"
#import "FavoriteViewController.h"
@interface DenLuViewController ()

@end

@implementation DenLuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
//    [self performSegueWithIdentifier:@"123" sender:nil];
//    //跳转
//    UIStoryboard *story=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
//    [self.navigationController pushViewController:
//     [story instantiateViewControllerWithIdentifier:@"123"] animated:YES];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    
}
- (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender
{
//    if([identifier isEqualToString:@"login"]){
//        if([self checkInput])
//        if ([self.personName.text isEqualToString:@"张三" ] && [_passWord.text  isEqualToString:@"123123"]) {
//          return YES;
////        }
////            [self login];
////        return NO;
//    }
//    return NO;
    return YES;
}
//- (void)login
//{
//    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@""]];
//    [[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
//        id result = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
//        if([[result objectForKey:@"code"] integerValue] == 0){
//            [self performSegueWithIdentifier:@"login" sender:nil];
//        }
//    }];
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
